<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>异清轩技术博客 - POWERED BY WY ALL RIGHTS RESERVED</title>
<link href="__PUBLIC__/css/bootstrap.min.css" type="text/css" rel="stylesheet">
<link href="__PUBLIC__/css/style.css" type="text/css" rel="stylesheet">
<link href="__PUBLIC__/my.css" type="text/css" rel="stylesheet">
<link type="text/css" href="__PUBLIC__/css/nprogress.css" rel="stylesheet">
<!--[if lt IE 9]>
    <script src="__PUBLIC__/js/html5shiv.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/js/respond.min.js" type="text/javascript"></script>
    <script src="__PUBLIC__/js/selectivizr-min.js" type="text/javascript"></script>
<![endif]-->
<link rel="apple-touch-icon-precomposed" href="__PUBLIC__/images/icon/icon.png">
<link rel="shortcut icon" href="__PUBLIC__/images/icon/icon.ico">

<block name="css">
<link type="text/css" href="__PUBLIC__/my.css" rel="stylesheet">
<!-- 引入导航的css和jquery -->
<link href="__PUBLIC__/nav/css/nav.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/nav/js/jquery.min.js"></script>
<!-- /导航的css和jquery -->
</block>

<meta name="Keywords" content="" />
<meta name="description" content="" />
<script type="text/javascript">
//判断浏览器是否支持HTML5
window.onload = function() {
  if (!window.applicationCache) {
    window.location.href="ie.html";
  }
}
</script>
</head>

<body>

<section class="container user-select">
<header>
    <div class="hidden-xs header" id="index_logo"><!--超小屏幕不显示-->
        <h1 class="logo"> 
            <a href="__APP__" title="摆渡社区 - POWERED BY WY ALL RIGHTS RESERVED"></a> 
        </h1>
        <ul class="nav hidden-xs-nav">
            <li class="active">
                <a href="__APP__">
                    <span class="glyphicon glyphicon-home"></span>网站首页
                </a>
            </li>
            <li>
                <a href="<{:U('Experience/index')}>">
                    <span class="glyphicon glyphicon-erase"></span>发布经验
                </a>
            </li>
            <li>
                <a href="<{:U('Pers/index')}>">
                    <span class="glyphicon glyphicon-inbox"></span>个人中心
                </a>
            </li>
            <li>
                <a href="<{:U('Show/index')}>">
                    <span class="glyphicon glyphicon-globe"></span>分享达人秀
                </a>
            </li>
            <li>
                <a href="about.html">
                    <span class="glyphicon glyphicon-user"></span>关于我们
                </a>
            </li>
            <li>
                <a href="<{:U('Admin/Index/index')}>" target="_blank">
                    <span class="glyphicon glyphicon-tags"></span>后台管理
                </a>
            </li>
        </ul>
        <div class="feeds"> 
            <a class="feed feed-xlweibo" href="" target="_blank">
                <i></i>新浪微博
            </a> 
            <a class="feed feed-txweibo" href="" target="_blank">
                <i></i>腾讯微博
            </a> 
            <a class="feed feed-rss" href="" target="_blank">
                <i></i>订阅本站
            </a> 
            <a class="feed feed-weixin" data-toggle="popover" data-trigger="hover" title="微信扫一扫" data-html="true" data-content="<img src='./Public/images/weixin.jpg' alt=''>" href="javascript:;" target="_blank">
                <i></i>关注微信
            </a> 
            </div>
            <div class="wall">
                <a href="readerWall.html" target="_blank">读者墙</a>
                 | 
                <a href="tags.html" target="_blank">标签云</a>
            </div>
      </div>
      <!--/超小屏幕不显示-->
      <div class="visible-xs header-xs"><!--超小屏幕可见-->
        <div class="navbar-header header-xs-logo">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-xs-menu" aria-expanded="false" aria-controls="navbar"><span class="glyphicon glyphicon-menu-hamburger"></span></button>
        </div>
        <div id="header-xs-menu" class="navbar-collapse collapse">
          <ul class="nav navbar-nav header-xs-nav">
            <li class="active"><a href="index.html"><span class="glyphicon glyphicon-home"></span>网站首页</a></li>
            <li><a href=""><span class="glyphicon glyphicon-erase"></span>网站前端</a></li>
            <li><a href=""><span class="glyphicon glyphicon-inbox"></span>后端技术</a></li>
            <li><a href=""><span class="glyphicon glyphicon-globe"></span>管理系统</a></li>
            <li><a href="about.html"><span class="glyphicon glyphicon-user"></span>关于我们</a></li>
            <li><a href="friendly.html"><span class="glyphicon glyphicon-tags"></span>友情链接</a></li>
          </ul>
          <form class="navbar-form" action="<{:U('Search/index')}>" method="get" style="padding:0 25px;">
            <div class="input-group">
              <input type="text" class="form-control" placeholder="请输入关键字" name="text">
              <span class="input-group-btn">
              <button class="btn btn-default btn-search" type="submit">搜索</button>
              </span> </div>
          </form>
        </div>
    </div>
</header>
  <!--/超小屏幕可见-->
  
    <block name="main">

    </block>


  <!--/右侧>992px显示-->
  <footer class="footer">POWERED BY &copy;<a href="">摆渡 </a> ALL RIGHTS RESERVED &nbsp;&nbsp;&nbsp;<span><a href="http://www.miitbeian.gov.cn/" target="_blank">豫ICP备15026801号-1</a></span> <span style="display:none"><a href="">网站统计</a></span> </footer>
</section>
<div><a href="javascript:;" class="gotop" style="display:none;"></a></div>
<!--/返回顶部--> 
<script src="__PUBLIC__/js/jquery-2.1.4.min.js" type="text/javascript"></script> 
<script src="__PUBLIC__/js/nprogress.js" type="text/javascript" ></script> 
<script src="__PUBLIC__/js/bootstrap.min.js" type="text/javascript"></script> 

<!-- 导航条jQ -->
<block name="nav_jq">
<script type="text/javascript">
$(function(){
        var originalCurhaha = $("#nav_main1 li.current");
        $("#nav_main1 li").mouseover(function(){
          $("#nav_main1 li").removeClass("current");  
          $(this).addClass("current");    
          $(this).children(".lm").show();
        });
        $("#nav_main1 li").mouseout(function(){
          $(this).removeClass("current"); 
          $(this).children(".lm").hide();
          originalCurhaha.addClass("current");
        });

        $('#strong_r').click(function(){
                // $(this).next('ul').slideToggle(500);
                if ($(this).next('ul').is(':hidden')) {
                    // $(this).next('ul').show();
                    $(this).next('ul').slideDown();
                }else{
                    $(this).next('ul').slideUp();
                };
            })
    })
</script>
</block>

<script type="text/javascript">
//页面加载
$('body').show();
$('.version').text(NProgress.version);
NProgress.start();
setTimeout(function() { NProgress.done(); $('.fade').removeClass('out'); }, 1000);
//返回顶部按钮
$(function(){
  $(window).scroll(function(){
    if($(window).scrollTop()>100){
      $(".gotop").fadeIn(); 
    }
    else{
      $(".gotop").hide();
    }
  });
  $(".gotop").click(function(){
    $('html,body').animate({'scrollTop':0},500);
  });
});
//提示插件启用
$(function () {
  $('[data-toggle="popover"]').popover();
});
$(function () {
  $('[data-toggle="tooltip"]').tooltip();
});
//鼠标滑过显示 滑离隐藏
$(function(){
  $(".carousel").hover(function(){
    $(this).find(".carousel-control").show();
  },function(){
    $(this).find(".carousel-control").hide();
  });
});
$(function(){
  $(".hot-content ul li").hover(function(){
    $(this).find("h3").show();
  },function(){
    $(this).find("h3").hide();
  });
});
//页面元素智能定位
$.fn.smartFloat = function() { 
  var position = function(element) { 
    var top = element.position().top; //当前元素对象element距离浏览器上边缘的距离 
    var pos = element.css("position"); //当前元素距离页面document顶部的距离
    $(window).scroll(function() { //侦听滚动时 
      var scrolls = $(this).scrollTop(); 
      if (scrolls > top) { //如果滚动到页面超出了当前元素element的相对页面顶部的高度 
        if (window.XMLHttpRequest) { //如果不是ie6 
          element.css({ //设置css 
            position: "fixed", //固定定位,即不再跟随滚动 
            top: 0 //距离页面顶部为0 
          }).addClass("shadow"); //加上阴影样式.shadow 
        } else { //如果是ie6 
          element.css({ 
            top: scrolls  //与页面顶部距离 
          });     
        } 
      }else { 
        element.css({ //如果当前元素element未滚动到浏览器上边缘，则使用默认样式 
          position: pos, 
          top: top 
        }).removeClass("shadow");//移除阴影样式.shadow 
      } 
    }); 
  }; 
  return $(this).each(function() { 
    position($(this));                          
  }); 
}; 
//启用页面元素智能定位
$(function(){
  $("#search").smartFloat();
});
//异步加载更多内容
jQuery("#pagination a").on("click", function ()
{
    var _url = jQuery(this).attr("href");
    var _text = jQuery(this).text();
    jQuery(this).attr("href", "javascript:viod(0);");
    jQuery.ajax(
    {
        type : "POST",
        url : _url,
        success : function (data)
        {
            //将返回的数据进行处理，挑选出class是news-list的内容块
            result = jQuery(data).find(".row .news-list");
            //newHref获取返回的内容中的下一页的链接地址
            nextHref = jQuery(data).find("#pagination a").attr("href");
            jQuery(this).attr("href", _url);
            if (nextHref != undefined)
            {
                jQuery("#pagination a").attr("href", nextHref);
            }
      else
            {
                jQuery("#pagination a").html("下一页没有了").removeAttr("href")
            }
            // 渐显新内容
            jQuery(function ()
            {
                jQuery(".row").append(result.fadeIn(300));
                jQuery("img").lazyload(
                {
                    effect : "fadeIn"
                });
            });
        }
    });
    return false;
});
</script>
</body>
</html>
